﻿namespace BONSAI.Common
{
    public class BONSAIConstants
    {
        public const string BONSAI_CONNECTION_STRING = "BONSAIConnectionString";
        //rilk

        public const string LINK_XML_ROUTING = "~/xml/routing.xml";
        public const string XML_ROUTING_FALSE = "false";//false: not parmater

        public const string LOGIN_INFO = "LoginInfo";
        public const string USERNAME_MINLENGTH = "UsernameMinLength";
        public const string LOGIN_OK_ADMIN = "LOGIN_OK_ADMIN";
        public const string USERNAME_ADMIN = "USERNAME_ADMIN";
        public const string LOGIN_APP_CUS_OK = "LOGIN_APP_CUS_OK";

        public const int THUMBNAIL_WIDTH = 200;
        public const int THUMBNAIL_HEIGHT = 150;
        public const int PREVIEW_WIDTH = 450;
        public const int PREVIEW_HEIGHT = 300;
        public const string THUMBNAIL_WIDTH_TEXT = "ThumbnailWidth";
        public const string THUMBNAIL_HEIGHT_TEXT = "ThumbnailHeight";
        public const string PREVIEW_WIDTH_TEXT = "PreviewWidth";
        public const string PREVIEW_HEIGHT_TEXT = "PreviewHeight";


        public const string JPG = ".jpg";

        public const string THUMBNAIL_WIDTH_PHOTO_TEXT = "ThumbnailWidthPhoto";
        public const string THUMBNAIL_HEIGHT_PHOTO_TEXT = "ThumbnailHeightPhoto";

        public const string OLD_THUMBNAIL = "OLD_THUMBNAIL";
        public const string OLD_PREVIEW = "OLD_PREVIEW";
        public const string MYMESSAGE_SESSION = "Session time out !";

        public const string LISTALLTYPE = "ListAlltype";
        public const string LISTPRODUCTSNEW = "ListProductsNew";
        public const string YAHOO = "yahoo";
        public const string SKYPE = "skype";
        public const string SHOPPING_CART = "SHOPPING_CART";
        

        public class RELATIVE_PHOTOS
        {

            public const string NEWS = "~/Photos/news/";
            public const string PRODUCTS = "~/Photos/product/";
            
        }

        public class IMAGE_VIEW_TYPE
        {
            public const string THUMBNAIL = "-thumbnail";
            public const string PREVIEW = "-preview";
        }


        //For Send Email
        public const string COMPANY_NAME = "CompanyName";
        public const string CONTACT_US_MAIL_TEMPLATE = "ContactUsMailTemplate";
        public const string ORDERMAILTEMPLATE = "OrderMailTemplate";
        
        public const string COMPANY_EMAIL = "CompanyEmail";
        public const string MYMESSAGE_SENDMAIL = "Mail của bạn đã được gửi thành công !";

        // define invalid char
        public static readonly char[] InvalidCharArray = new char[]
          {
              '!',
              '?',
              '/',
              '<',
              ':',
              '|',
              '*',
              '>',
              '"',
              '\\',
              ' '
          };
        //end
        /// <summary>
        /// Constant for Change Laguage
        /// </summary>
        public const string LANG = "lang";
        public const string LANG_VN = "vi-VN"; //"vi-VN"
        public const string LANG_EN = "en-EN"; //"en-Us"
        public const string LANG_JA = "ja-JA"; //"en-JA"

        public const string VN = "vi"; //"vi-VN"
        public const string EN = "en"; //"en-Us"
        public const string JA = "ja"; //"en-JA"

        public const string __EVENTTARGET = "__EventTarget";

        public const string ABOUTUSID = "aboutUsId";
        public const string NEWSID = "newsId";
        public const string PRODUCTID = "productId";
        public const string TYPEID = "typeId";
        public const string NAME = "name";
        public const string ISNEW = "isnew";
        
        public const string CURENT = "curent";
        

        public const string ERROR404 = "/404/vi";

    }
}
